package jp.co.lkg.springsmp.common.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


import jp.co.lkg.springsmp.common.dao.GoodinfoDao;
import jp.co.lkg.springsmp.common.db.dto.GoodinfoDto;
import jp.co.lkg.springsmp.common.db.mapper.GoodinfoMapper;



@Component
public class GoodinfoDaoImpl implements GoodinfoDao
{

	@Autowired
	private GoodinfoMapper goodinfoMapper;

	@Override
	public GoodinfoDto selectByPk(GoodinfoDto dto) {
		
		return goodinfoMapper.selectByPk(dto);
	}

	@Override
	public GoodinfoDto selectByPkForUpdate(GoodinfoDto dto) {
		return goodinfoMapper.selectByPkForUpdate(dto);
	}

	@Override
	public void insert(GoodinfoDto dto) {
		goodinfoMapper.insert(dto);
		
	}

	@Override
	public void updateByPk(GoodinfoDto dto) {
		goodinfoMapper.updateByPk(dto);
		
	}

	@Override
	public void deleteByPk(GoodinfoDto dto) {
		goodinfoMapper.deleteByPk(dto);
		
	}

	@Override
	public void updateIncludeNull(GoodinfoDto dto) {
		goodinfoMapper.updateIncludeNull(dto);
		
	}

	@Override
	public List<GoodinfoDto> select(GoodinfoDto dto) {
		return goodinfoMapper.select(dto);
	}
	
	//分页
	@Override
	public int selectAllPage() {
		// TODO Auto-generated method stub
		return goodinfoMapper.selectAllPage();
	}

	@Override
	public List<GoodinfoDto> selectAllGood(GoodinfoDto dto) {
		// TODO Auto-generated method stub
		return goodinfoMapper.selectAllGood(dto);
	}

	@Override
	public List<GoodinfoDto> selectByType(GoodinfoDto dto) {
		// TODO Auto-generated method stub
		return goodinfoMapper.selectByType(dto);
	}

	@Override
	public int selectPage(GoodinfoDto dto) {
		// TODO Auto-generated method stub
		return goodinfoMapper.selectPage(dto);
	}

	@Override
	public GoodinfoDto selectByName(String goodName) {
		// TODO Auto-generated method stub
		return goodinfoMapper.selectByName(goodName);
	}

	


	
}
